package com.humanSource.code.service.impl;

import com.utils.PageUtils;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.utils.PageUtils;
import com.utils.Query;

import com.humanSource.code.dao.UserSimpleDao;
import com.humanSource.code.entity.UserSimpleEntity;
import com.humanSource.code.service.UserSimpleService;


@Service("userSimpleService")
public class UserSimpleServiceImpl extends ServiceImpl<UserSimpleDao, UserSimpleEntity> implements UserSimpleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UserSimpleEntity> page = this.page(
                new Query<UserSimpleEntity>().getPage(params),
                new QueryWrapper<UserSimpleEntity>()
        );

        return new PageUtils(page);
    }

}